package com.open.capacity.workflow.dao;

import com.open.capacity.workflow.model.WFProcessinstance;
import com.open.capacity.workflow.model.WFProcessinstance;
import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

/**
 * @author 作者 ftquan 464725602@qq.com
 * @version 创建时间：2017年11月12日 上午22:57:51
 * 流程实例
 */
@Mapper
public interface WFProcessinstanceDao {

    int save(WFProcessinstance processinstance);

    int updateByOps(WFProcessinstance processinstance);

    int updateStatus(@Param("id")String id, @Param("status")Integer status);

    WFProcessinstance findById(String id);

    List<WFProcessinstance> findByDelegateRuleId(String delegateRuleId);

    int delete(String id);

    int count(Map<String, Object> params);

    List<WFProcessinstance> findList(Map<String, Object> params);

    List<WFProcessinstance> findFinishedList(Map<String, Object> params);

}
